﻿using System;
using System.Collections.Generic;
using Inovout.Descriptors;

namespace Inovout.Security
{
    [Serializable]
    public class WindowsUser : IUser
    {
        public string Name
        {
            get;
            set;
        }

        public string MachineName { get; set; }

        internal WindowsUser(string name, string machineName)
        {
            ArgumentAssert.IsNotDefault(name, "name");
            this.Name = name;
            this.MachineName = machineName;
        }

        public WindowsUser(string userName)
            : this(userName, Environment.MachineName)
        {
        }
    }
}
